stylecontext: Be more graceful when save() isn't matched with restore()
authorBenjamin Otte <otte@redhat.com>
Sun, 18 Jan 2015 21:24:35 +0000 (22:24 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 19 Jan 2015 00:12:50 +0000 (01:12 +0100)
commit0fef59b48643f0de4cb919ba582bbcf97d3891f1
treed9dfaeb875ee37fe1aed5bbb4bca6c061882b6aa
parente649c8773f0357df19f4e28aabf40a203a39c409
stylecontext: Be more graceful when save() isn't matched with restore()

Instead of asserting, just print a g_warning() and try to work around
the problem.
I hope that g_warning() isn't too spammy for people that are hit with
it.

Also clarify the docs that not restore()ing after a save() is a bad
idea.

https://bugzilla.gnome.org/show_bug.cgi?id=743101
gtk/gtkstylecontext.c